package com.mybatis.mapper;

import com.mybatis.pojo.Brand;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface BrandMapper {


//    查询所有
    public List<Brand> selectAll();
//    根据ID查询
    Brand selectById(int id);
    //条件查询
//    List<Brand> selectByCondition(@Param("status") int status, @Param("companyName") String companyName, @Param("brandName") String brandName);
//  List<Brand> selectByCondition(Brand brand);
  List<Brand> selectByCondition(Map map);
//  List<Brand> selectByConditionSingle(Map map);
  void add(Brand brand);
  int update(Brand brand);
//    void update(Brand brand);
  void deleteById(int id);
  void deleteByIds(@Param("ids") int[] ids);
}
